<%@page import="com.bill.common.user.dto.AccountDTO"%>
<%@page import="com.bill.common.user.service.IRegisterUserService"%>
<%@page import="com.bill.common.user.dto.RegisterUserDTO"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setLocale value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
	<fmt:setBundle basename="i18n.itilbase"/>
	<c:set var="lang" value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
<%
	if(session.getAttribute("loginName")==null){
		response.sendRedirect( "login2.jsp");
		return;
	}
	ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());

	IRegisterUserService registerUserService = (IRegisterUserService)ac.getBean("registerUserService");
	AccountDTO acdto = registerUserService.findAccountByLoginName((String)session.getAttribute("loginName"));
	request.setAttribute("ac",acdto);
	if(!acdto.getStatus().equals("Activation")){
		response.sendRedirect( "tm.jsp");
		return;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta charset="UTF-8">
<title><fmt:message key="i18n.addToMoney"/>-<fmt:message key="i18n.title"/> </title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link href="web/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="web/js/hall.js"></script>

</head>
<body>

<div class="zhong">
	<jsp:include page="tm-head.jsp"></jsp:include>
  	<div class="main">
  	<div class="right_top_img">

       <!-- affiche -->
	     	<div class="right_top_img">
	       		<div  class="notice_title"><span  style="float:left"><fmt:message key="i18n.addToMoney"/></span></div>
		        <div style="border:dashed 1px #84888a;padding: 5px;" align="left" >
		        	<div id="ac_status_info"></div>
		        	<table width="100%">
		        		<tr>
		        			<td><fmt:message key="i18n.addToMoney"/>:
		        				<input type="text" id="addTo_extractMoney" />
		        				(<fmt:message key="i18n.addToBalance"/>：${ac.addTo})
		        			</td>
		        		</tr>
		        		<tr>
		        			<td><a href="javascript:addTo()">[<fmt:message key="i18n.msAddTo"/>]</a></td>
		        		</tr>
		        		
		        	</table>
				</div>
		 	</div>
	      <!-- end for affiche -->
	 </div>
    <div class="clear"></div>
  </div>
  <jsp:include page="foot.jsp"></jsp:include>
</div>
<script src="web/js/meun.js" type="text/javascript"></script>
</body>
</html>